﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="ViewAssignmentReport.aspx.cs" Inherits="ViewAssignmentReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1 {
            width: 100%;
        }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style1">

        <tr>
            <td align="right">
                <h2><asp:Label ID="lablViewAss" runat="server" Text="View AssignmentReport"></asp:Label></h2>
            </td>
        </tr>

        <tr>
            <td>
                <table align="left" cellspacing="5" style="border: 4px outset orange;" width="100%">
                    <tr>
                        <td align="right" width="20%">
                            <b><asp:Label ID="lablAssName" runat="server" Text="Assignment Name"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablAssignmentName" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablSub" runat="server" Text="Subject"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablSubject" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablTop" runat="server" Text="Topic"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablTopic" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablNoOfStud" runat="server" Text="No Of Students"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="LablNoOfStudents" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablComp" runat="server" Text="Completed By"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablCompletedBy" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablPending" runat="server" Text="Pending By"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablPendingBy" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>

        <tr>
            <td>
               <asp:GridView ID="gvAssignment" runat="server" AllowPaging="True" AutoGenerateColumns="False" 
                    BackColor="LightGoldenrodYellow" 
                                BorderColor="Tan" BorderWidth="1px" 
            CellPadding="2" ForeColor="Black" GridLines="Vertical" DataKeyNames="userId" 
                        Width="930px" onrowcommand="gvAssignment_RowCommand">
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <Columns>
                            <asp:BoundField DataField="userId" HeaderText="userId" Visible="false" 
                                SortExpression="userId" />
                            <asp:BoundField DataField="userName" HeaderText="Name" 
                                SortExpression="userName" />
                            <asp:BoundField DataField="States" HeaderText="Status" 
                                SortExpression="Status" />
                           <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:Label ID="lablLink" runat="server" Text="Link"></asp:Label>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:LinkButton ID="btnLink" runat="server" CommandName="btnLinkClick" CommandArgument='<%# Eval("userId") %>'></asp:LinkButton>
                            </ItemTemplate>
                           </asp:TemplateField>
                            
                        </Columns>
                        <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
         <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="#CB6811" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#E49642" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                </asp:GridView> 
            </td>
        </tr>
    </table>
</asp:Content>

